package com.headwind.logistics.operation.service.impl;

import com.headwind.logistics.operation.dto.RechargeCustomerDto;
import com.headwind.logistics.operation.mapper.RechargeRecordDaoInter;
import com.headwind.logistics.operation.service.inter.RechargeRecordBizInter;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author 周鑫
 * @Date 2020/7/22 16:38
 * @Version 1.0
 * @DESCRIPTION 填写类作用描述
 */
@Service
public class RechargeRecordBizImpl implements RechargeRecordBizInter {

    @Resource
    RechargeRecordDaoInter rechargeRecordDaoInter;

    /**
     * 查询和分页
     * @param page 页码
     * @param rows 行数
     * @return
     */
    @Override
    public List<RechargeCustomerDto> querAlltoBizInter(@Param("page") Integer page, @Param("rows") Integer rows) {
        if (page != null){
            page = (page-1)*rows;
        }
        return rechargeRecordDaoInter.selectAlltoDaoInter(page,rows);
    }
}
